<?php

namespace app\index\validate;

use think\Validate;

class User extends Validate
{
    protected $rule =   [
        'name'  => 'require|max:25',
        'iphone'   => 'require|number|max:11|mobile',
        'id_card' => 'require',
        'date' => 'date',    
    ];
    
    protected $message  =   [
        'name.require' => '姓名必须填写',
        'name.max'     => '名称最多不能超过25个字符',
        'iphone.require'   => '手机号必须填写',
        'iphone.number'   => '手机号必须是数字',
        'iphone.max'  => '手机号不可以超过十一位',
        'iphone.mobile'  => '手机号格式不正确',
        'id_card'        => '导游证必须存在',    
    ];
    
}